
package com.useeinfo.asg.modules.security.interceptor;

/**
 * Created by Yso on 2016/1/11.
 */


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 访问信息拦截器，主要用于记录用户的访问痕迹
 * <p/>
 * Author: Mingjie Pan  Date: 13-7-6, 上午10:37
 * Reviewed by Jianping.
 */
public class WebInfoInterceptor extends HandlerInterceptorAdapter {

	private static final Logger logger = LoggerFactory.getLogger(WebInfoInterceptor.class);


	public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler)throws Exception {
	/*	if (request.getSession().getAttribute("user") == null) {
			response.sendRedirect("/datawx/mobile/login/user/no_login.action");
			return false;
		}*/
	 return true;
	}
}

